package main;

import simulatore.Simulatore_MM1FCFS;
import simulatore.Simulatore_UM1FCFS;
import solver.AlgebricSolver;

public class MainSimulatoreStazioneSingola {
	
	public static void main(String[] args) {
		
		double lambda = 0.8;
		double uniform_lower = 0.1;
		double uniform_upper = 2.4;
		double mu = ((double)1) / 1.2;
		String seed = "3663749";
		
		System.out.println("Parametri:");
		System.out.println();
		System.out.println("Lambda: " + lambda);
		System.out.println("Mu: " + mu);
		System.out.println();
		
		Simulatore_MM1FCFS t = new Simulatore_MM1FCFS(lambda, mu, 0.0,seed, "RIGENERATIVO");
		t.initializeRigenerativo(0.1,30,10);
		//t.initializePilota(1000,100);
		//UM1FCFS_Simulator t = new UM1FCFS_Simulator(uniform_lower,uniform_upper,mu,0.0,20000,seed);
		t.Engine();
		t.Report();
		
		/*
		int numeroDiCicli = 10;
		MM1FCFS_Rig_Simulator s;
		
		do {
			s = new MM1FCFS_Rig_Simulator(lambda, mu, 0.0,20000,seed,0.5, numeroDiCicli);
			s.Engine();
			numeroDiCicli = s.Report2();
		} while(numeroDiCicli != 0);
		
		*/
		
		
		System.out.println();
		System.out.println("Risolutore algebrico MM1");
		AlgebricSolver.solve_mm1_lk_mk(lambda,mu,4);
		
		
	}

}
